#!/bin/bash
host=$2
if $host in ''
case $1 in "start") {
  for i in ha1 ha2 ha3; do
    ssh $i "/opt/module/zookeeper/bin/zkServer.sh start"
  done
} ;;
"stop") {
  for i in ha1 ha2 ha3; do
    ssh $i "/opt/module/zookeeper/bin/zkServer.sh stop"
  done
} ;;
"status") {
  for i in ha1 ha2 ha3; do
    ssh $i "/opt/module/zookeeper/bin/zkServer.sh status"
  done
} ;;
esac
